package com.qj.yantaishan.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 商品属性名对象 shanglala_product_property
 * 
 * @author qihe
 * @date 2022-07-22
 */@Data
public class ProductProperty
{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    /** $column.columnComment */
    private Integer pid;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 属性名 */
    @Excel(name = "属性名")
    private String name;

    /** 0本地，1：淘宝导入 */
    @Excel(name = "0本地，1：淘宝导入")
    private Integer type;

    /** 自定义属性所属店铺ID 0所有店铺公用 */
    @Excel(name = "自定义属性所属店铺ID 0所有店铺公用")
    private Long storeId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long addTime;

    /** 1未删除，0已经假删除 */
    @Excel(name = "1未删除，0已经假删除")
    private Integer isOn;

    @TableField(exist = false)
    private ProductPropertyValue productPropertyValue;


    public void setPid(Integer pid) 
    {
        this.pid = pid;
    }

    public Integer getPid() 
    {
        return pid;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setAddTime(Long addTime) 
    {
        this.addTime = addTime;
    }

    public Long getAddTime() 
    {
        return addTime;
    }
    public void setIsOn(Integer isOn) 
    {
        this.isOn = isOn;
    }

    public Integer getIsOn() 
    {
        return isOn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pid", getPid())
            .append("productId", getProductId())
            .append("name", getName())
            .append("type", getType())
            .append("storeId", getStoreId())
            .append("addTime", getAddTime())

            .append("isOn", getIsOn())
            .toString();
    }
}
